package forum.service.rest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Created by zslin.com on 2016/10/13.
 */
@RestController
@RequestMapping(value = "/apis/test")
public class IndexControllerImpl {

    private static final Logger logger = LoggerFactory.getLogger(IndexControllerImpl.class);

    @RequestMapping(value = "/index")
    public String index() {

        return "Hello World!!!";
    }



    @RequestMapping(value="/now",method= RequestMethod.GET)
//    @RequestMapping("/now")
    String hehe() {
        return "现在时间：" + (new Date()).toLocaleString();
    }
}
